package com.multi.thread.chapter03.demo17;

public class ThreadB extends Thread {
	
	@Override
	synchronized public void run() {
		try {
			System.out.println("begin B threadName = " + Thread.currentThread().getName() 
					+ ", " + System.currentTimeMillis());
			Thread.sleep(2000);
			System.out.println("  end B threadName = " + Thread.currentThread().getName() 
					+ ", " + System.currentTimeMillis());
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

}
